package ru.headbridge.dockerdebug;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/example")
@Slf4j
public class ExampleController {

    @GetMapping("/uuid")
    public UUID getRandomUUID() {
        var uuid = UUID.randomUUID();
        log.info("Generated UUID: {}", uuid);
        return uuid;
    }
}
